package com.wangzhixuan.db.dao;

import com.wangzhixuan.db.bean.Doctor;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Customer data access
 *
 * @author victor
 */
@Repository
public interface DoctorDao {
  
  public Doctor getDoctorById(@Param("doctorId") long doctorId);
  
  
  public List<Doctor> getDoctorBySearch(@Param("search") String search);

  public List<Doctor> getDoctorByDepartment(@Param("deptName") String deptName);

  public List<Doctor> getDoctorByDepartmentId(@Param("deptId") long deptId);

  public List<Doctor> getDoctorByDepartmentIds(List<Long> ids);

  public List<Doctor> getAllDoctor();
  
  public List<Doctor> getAttentionDoctors(@Param("customerId") long customerId);
  
  
  public int addAttention(@Param("customerId") long customerId,@Param("doctorId") long doctorId);
  public int deleteAttention(@Param("customerId") long customerId,@Param("doctorId") long doctorId);
  public int getAttention(@Param("customerId") long customerId,@Param("doctorId") long doctorId);

}
